/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include <向量.h>


struct S_NodeLink {
	class C_插座基类* m_插座in;
	class C_插座基类* m_插座out;

	//class C_节点基类* m_插座in_Node;
	//class C_节点基类* m_插座out_Node;
	//std::wstring		m_In插座ID;
	//std::wstring		m_Out插座ID;

	int32		m_GPU缓存偏移;

	uvec2		f_断开输出链接();
	S_NodeLink*	f_Link(C_插座基类* m_in, C_插座基类* m_out);
	uvec2		f_get链接线插座id();
};


S_NodeLink*		f_genNodeLink();
void			f_genMultNodeLink(std::vector<S_NodeLink*>& ls);

void f_NodeLine_回收(S_NodeLink* link);
void f_updateNodeLink(S_NodeLink* link);




typedef struct {
	vec2		头位置;
	vec2		尾位置;
	S_NodeLink* link;
}S_连接线配置;


